package com.study.cycle;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 * @Author tanglingyu
 * @Date: 2021/08/16/ 10:27
 * @Description
 */
public class TestSupport implements ApplicationContextAware {

//  @Autowired
//  private Test1 test1;

  private ApplicationContext applicationContext;


  @Override
  public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
    this.applicationContext = applicationContext;
  }

  public ApplicationContext getApplicationContext() {
    return applicationContext;
  }
}
